﻿namespace Admin.NET.Core.Btms;
[Tenant("Btms2")]   //"ConfigId"一致
[SugarTable("InvStockInBillMaster", "血库2入库表")]
public class InvStockInBillMaster
{
    // 单据编号
    [SugarColumn(ColumnName = "BillNo", ColumnDescription = "主键BillNo", IsPrimaryKey = true, IsIdentity = false)]
    public string BillNo { get; set; }
    // 手工单号
    public string ManualNo { get; set; } = "";
    // 单据类型
    public string BillType { get; set; } = "";
    // 单据状态
    public int BillStatus { get; set; }
    // 审核用户ID
    public long? AuditUserId { get; set; }
    // 审核时间
    public DateTime? AuditTime { get; set; }
    // 审核信息
    public string AuditInfo { get; set; } = "";
    // 备注
    public string Remark { get; set; } = "";
    // 创建时间，默认当前时间
    public DateTime? CreationTime { get; set; }
    // 创建用户ID
    public long? CreatorUserId { get; set; }
    // 最后修改时间
    public DateTime? LastModificationTime { get; set; }
    // 最后修改用户ID
    public long? LastModifierUserId { get; set; }
    /// <summary>
    /// 业务类型
    /// </summary>
    public int BusinessType { get; set; }

    /// <summary>
    /// 血液来源
    /// </summary>
    public string BasBloodSourceId { get; set; }

    /// <summary>
    /// 来源单号
    /// </summary>
    public string SourceBillNo { get; set; }

    /// <summary>
    /// 总数量
    /// </summary>
    public int SumQty { get; set; }

    /// <summary>
    /// 入库院区
    /// </summary>
    public int? CampusArea { get; set; }
}
